package com.edu.bhu.admin.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.edu.bhu.common.core.domain.entity.SysUser;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.edu.bhu.common.annotation.Excel;
import com.edu.bhu.common.core.domain.BaseEntity;

/**
 * 租车记录对象 bik_record
 * 
 * @author heyinan
 * @date 2022-03-14
 */
public class BikRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 租车记录唯一标识 */
    private Long recordId;

    /** 关联单车id */
    @Excel(name = "关联单车id")
    private Long bikId;
    /** 关联单车 */
    private BikBicycle bikBicycle;

    /** 关联用户id */
    @Excel(name = "关联用户id")
    private Long userId;
    /** 关联用户 */
    private SysUser sysUser;

    /** 租车起始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "租车起始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /** 租车终止时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "租车终止时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /** 总价 */
    @Excel(name = "总价")
    private BigDecimal price;

    /** 支付状态 1未支付 2已支付 */
    @Excel(name = "支付状态")
    private Long payStatus;

    /** 租赁状态 1.正常出租 2.已还车 */
    private Long rentStatus;

    public void setRecordId(Long recordId)
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }
    public void setBikId(Long bikId) 
    {
        this.bikId = bikId;
    }

    public Long getBikId() 
    {
        return bikId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public BikBicycle getBikBicycle() {
        return bikBicycle;
    }

    public void setBikBicycle(BikBicycle bikBicycle) {
        this.bikBicycle = bikBicycle;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    public Long getRentStatus() {
        return rentStatus;
    }

    public void setRentStatus(Long rentStatus) {
        this.rentStatus = rentStatus;
    }

    public Long getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(Long payStatus) {
        this.payStatus = payStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("bikId", getBikId())
            .append("userId", getUserId())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("price", getPrice())
            .toString();
    }
}
